package io.renren.modules.gaokaobaobei.service;

import com.baomidou.mybatisplus.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.gaokaobaobei.entity.UserBackupEntity;
import io.renren.modules.school.entity.TemplateStudentEntity;
import io.renren.modules.school.entity.TreeEntity;
import io.renren.modules.school.entity.UniversityEntity;

import java.util.List;
import java.util.Map;

/**
 * 志愿设计管理
 *
 * @author zlb
 * @email 316682546@qq.com
 * @date 2018-10-13 19:18:27
 */
public interface UserBackupService extends IService<UserBackupEntity>{

    PageUtils queryPage(Map<String, Object> params,String type);

    PageUtils getSelfStudentlist(Map<String,Object> parmas);

    UserBackupEntity getUserBackupByStudentId(Integer id);

    public List<UserBackupEntity> getAllDataByUsername(String username);

    boolean updateTypeByUserName(Map<String, String> map);

    int findTypeByUserName(Map<String, String> map);

    UserBackupEntity getByNameAndPhone(UserBackupEntity userBackup);

    UserBackupEntity getNewUserBackup();

    List<TreeEntity> getTemplatelTree(String username);

    void saveTemplate(TemplateStudentEntity templateStudentEntity);

    List<UniversityEntity> getTemplateById(Integer id);

    List<UniversityEntity> getStudentDesign(Integer studentId);

    void deleteStudentSchoolAndProfession(Integer id);

    void saveTuijian(UserBackupEntity userBackup);
}

